const initState = {
  data: null
}

function loginReducer(state = initState, action) {
  switch (action.type) {
    case 'USER_INFO': 
      state.data = action.data;
      break;
    default: return state
  }
  return state
}

export default loginReducer